home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsiparm4.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  59 lines

  1. /* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsiparm4.h,v 1.2 2000/09/19 19:00:29 lpd Exp $ */
  20. /* ImageType 4 image parameter definition */
  21.  
  22. #ifndef gsiparm4_INCLUDED
  23. #  define gsiparm4_INCLUDED
  24.  
  25. #include "gsiparam.h"
  26.  
  27. /*
  28.  * See Section 4.3 of the Adobe PostScript Version 3010 Supplement
  29.  * for a definition of ImageType 4 images.
  30.  */
  31.  
  32. typedef struct gs_image4_s {
  33.     gs_pixel_image_common;
  34.     /*
  35.      * If MaskColor_is_range is false, the first N elements of
  36.      * MaskColor are sample values; if MaskColor_is_range is true,
  37.      * the first 2*N elements are ranges of sample values.
  38.      *
  39.      * Currently, the largest sample values supported by the library are 12
  40.      * bits, but eventually we want to support DevicePixel images with
  41.      * samples up to 32 bits as well.
  42.      */
  43.     bool MaskColor_is_range;
  44.     uint MaskColor[GS_IMAGE_MAX_COMPONENTS * 2];
  45. } gs_image4_t;
  46.  
  47. #define private_st_gs_image4()    /* in gximage4.c */\
  48.   extern_st(st_gs_pixel_image);\
  49.   gs_private_st_suffix_add0(st_gs_image4, gs_image4_t, "gs_image4_t",\
  50.     image4_enum_ptrs, image4_reloc_ptrs, st_gs_pixel_image)
  51.  
  52. /*
  53.  * Initialize an ImageType 4 image.  Defaults:
  54.  *      MaskColor_is_range = false
  55.  */
  56. void gs_image4_t_init(P2(gs_image4_t * pim, const gs_color_space * color_space));
  57.  
  58. #endif /* gsiparm4_INCLUDED */
  59.